<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>发送消息</title>
    <script src="js/vue.js"></script>
    <script src="js/axios-0.18.0.js"></script>
</head>
<body>
    <script>
        function get(){
            axios({
                method:"get",
                url:"http://127.0.0.1:4523/m1/5204835-4870994-default/demo",
            }).then(result=>{
                console.log(result.data)
            })
        }
        function post(){
            // axios({
            //     method:"post",
            //     url:"http://127.0.0.1:4523/m1/5204835-4870994-default/demo",
            //     data:"id=1"
            // }).then(result=>{
            //     console.log(result.data)
            // })
            axios.get("http://127.0.0.1:4523/m1/5204835-4870994-default/demo").then(result=>{console.log(result.data)})
        }
    </script>
    <input type="button" value="获取数据" onclick="get()">
    <input type="button" value="post" onclick="post()">
</body>
</html>